package com.clubs.coding.exception;

/**
 * 描述：     异常枚举
 */
public enum ImoocMallExceptionEnum {
    NEED_USER_NAME(10001, "用户名不能为空"),
    NEED_PASSWORD(10002, "密码不能为空"),
    PASSWORD_TOO_SHORT(10003, "密码长度不能小于8位"),
    NAME_EXISTED(10004, "不允许重名"),
    NULL_SHOP(10012,"没有该商品"),
    INSERT_FAILED(10005, "插入失败，请重试"),
    WRONG_PASSWORD(10006, "密码错误"),
    NEED_LOGIN(10007, "用户未登录"),
    UPDATE_FAILED(10008, "更新失败"),
    NEED_ADMIN(10009, "无管理员权限"),
    PARA_NOT_NULL(10010,"名字不能为空"),
    CREATE_FAILED(10011,"插入失败"),
    MSG_NULL(10012,"请检查传参"),
    NOT_SALT(10013,"商品状态不可售"),
    NOT_Stock(10014,"库存不足"),
    MKDIR_FAILED(10015, "文件夹创建失败"),
    UPLOAD_FAILED(10016, "图片上传失败"),
    CART_EMPTY(10017, "购物车为空"),
    NO_ENUM(10018,"未找到对应的枚举"),
    NO_ORDER(10019,"订单不存在"),
    NO_YOU_ORDER(10020,"订单不属于你"),
    NOT_YOUR_ORDER(10021,"订单状态不符要求"),
    TOKEN_NO(10022,"不存在token"),
    MAKE_ID_NO(10023,"报名项目不存在"),
    APLI_NO(10024,"报名失败,请重试"),
    APLI_FULL(10025,"报名人数已满"),
    IS_MUBER(10026,"请开通会员"),
    IS_LEAVE(10027,"请假失败"),
    LEAROMG_NO(10028,"学习记录生成失败"),
    OPENID_NO(10029,"请重新登录"),
    RECORD_NO(10030,"余额不足"),
    MOBILE_NO(20001,"你还未在我俱乐部开通会员请联系管理员"),
    USER_MOBILE_NO(20002,"请前往和畅约课管理小程序完善个人信息"),
    LEARNING_NO(20003,"还没有学习记录赶快报名参与把"),
    CHECK_NULL(20004,"目前还没有需要审核的会员"),
    ALTER_NO(20005,"修改失败请重试"),
    CHECK_ID(20006,"不存在审核id请检查"),
    LINKMAN_NULL(20007,"还不存在联系方式快点添加把"),
    LEAVE_NULL(30001,"审核失败请重试"),
    FILE_UP_NULL(30002,"请上传xlsx文件"),
    DATA_before(30003,"时间字段不在当前时间以后请检查"),
    REQUEST_PARAM_ERROR(10002,"参数错误"),
    NULL_ID(10003,"没有此商品"),
    DELEdTE_FAILED(10004,"删除失败"),

    SYSTEM_ERROR(20000, "系统异常，请从控制台或日志中查看具体错误信息");
    /**
     * 异常码
     */
    Integer code;
    /**
     * 异常信息
     */
    String msg;

    ImoocMallExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
